

#include "ADHeatTimeKernel.h"

registerMooseObject("chargeApp", ADHeatTimeKernel);

InputParameters
ADHeatTimeKernel::validParams()
{
  InputParameters params = ADTimeKernelValue::validParams();
  params.set<bool>("use_displaced_mesh") = true;
  return params;
}

ADHeatTimeKernel::ADHeatTimeKernel(const InputParameters & parameters)
  : ADTimeKernelValue(parameters),
  _AD_density(getADMaterialProperty<Real>("density")),
  _AD_specific_heat(getADMaterialProperty<Real>("specific_heat"))
{
}

ADReal
ADHeatTimeKernel::precomputeQpResidual()
{
  return _AD_density[_qp] * _AD_specific_heat[_qp] * _u_dot[_qp];
}
